<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<script type="text/javascript">
    var errorOpts = {
        msg : "<bean:message key="faq.read.msg" bundle="errors"/>",
        boxTitle : "<bean:message key="faq.read.boxTitle" bundle="errors"/>",
        msgStatus: "<bean:message key="faq.read.msgStatus" bundle="errors"/>"
    };
</script>

<c:forEach items="${requestScope.faqs}" var="entry">
<div class="result">
	<ul class="itemResultNW">
   		<li>
     		<p class="faqDate">${entry.faqDate}</p>
        </li>
        <li>
     		<p class="faqCat" title="${entry.category.description}">${entry.category.name}</p>
        </li>
    	<li>
     		<p class="faqTitle"><a href="javascript:showReadingBox('${pageContext.request.contextPath}/ticket/loadfaq.do',${entry.faqID},'<bean:message key="faq.boxtitle" bundle="faq"/>')">${entry.title}</a></p>
        </li>
    	<li>
	     	<div class="faqContent">${entry.content}</div>
        </li>				            
	</ul>
</div>
</c:forEach>